﻿/*
ParallelPlatform Project - A web platform to distribute and share knowledge
Online Editor - An online tool to create and play animations
Copyright (C) 2011 Daniel Guerrero Martínez & Sergio Rodríguez Lumley

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package Classes{
	import flash.display.MovieClip;

	public class TL_DisplayBlock extends MovieClip {
		
		private var id:uint;
		
		public function TL_DisplayBlock(){
			super();
			//this.buttonMode = true;
			//this.useHandCursor = true;
		}
		
		public function setID(iid:uint):void{
			id = iid;
		}
		
		public function getID():uint{
			return id;
		}
		
		public function getTop():TL_DisplayBlock{
			return this.getChildAt(numChildren -1) as TL_DisplayBlock;
		}
		
		/**
		  Paints the type of container
		  @param type uint with the value of Container.Type
		*/
		public function paintType(type:uint):void{
			if(type == Container.NORMAL){
				gotoAndStop(1);
			}else if(type == Container.INSTANT){
				gotoAndStop(2);
			}else if(type == Container.READER){
				gotoAndStop(3);
			}
		}

	}
}